home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000350_news@columbia.edu _Tue Mar 4 19:05:29 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA06114
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 4 Mar 1997 19:05:28 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id TAA14239
  7.     for kermit.misc@watsun; Tue, 4 Mar 1997 19:05:27 -0500 (EST)
  8. Path: news.columbia.edu!panix!news.eecs.umich.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!voskovec.radio.cz!newsbastard.radio.cz!stdio!news-feed.inet.tele.dk!mr.net!newsfeeds.sol.net!newspump.sol.net!mindspring!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!ix.netcom.com!news
  9. From: Nassif T Nassif <nnassif@voice-tel.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: UNIXLOGIN script???
  12. Date: Tue, 04 Mar 1997 16:32:53 -0500
  13. Organization: Netcom
  14. Lines: 24
  15. Message-ID: <331C9505.26B0@voice-tel.com>
  16. NNTP-Posting-Host: clv-oh21-12.ix.netcom.com
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset=us-ascii
  19. Content-Transfer-Encoding: 7bit
  20. X-NETCOM-Date: Tue Mar 04  3:34:03 PM CST 1997
  21. X-Mailer: Mozilla 3.01Gold (Win95; I)
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:6687
  23.  
  24. I am trying to write a script to login to a unix machine: I am using the
  25. unixlogin in "C-kermit" book page 436. In the book example, the part to
  26. output the password was omitted but it is fixed in the ckermit.ini file.
  27. If I include the macros (NET and UNIXLOGIN) in a script, I was able to
  28. login, but then the script will exit from the remote host immediately
  29. after I would get the prompt. I want to be able to login and then
  30. transfer the control to the user (i.e the keyboard) so whewnever the
  31. user execute the script he should not worry about login and password.
  32. here is my code:
  33. #!/l1/ntn/dev01/kermit/kermit
  34.  
  35. take /l1/ntn/dev01/kermit/ckermit.ini ;ini where macros are defined
  36. NET tcp 193.254.220.1                
  37. UNIXLOGIN  my_usrid mypasswd
  38. hangup
  39. exit 0 
  40.  
  41.  
  42. where my_usrid and mypasswd are the generic userid and password
  43. respectively under which I want many users to login to my host.
  44. Obviously I am missing Something.
  45.  
  46. Nassif T Nassif
  47. email: nnassif@voice-tel.com